 import { Component } from "@angular/core/";
 import { NavController,NavParams } from "ionic-angular";
 import { HomePage } from "../home/home";
 
 @Component({
   selector: 'page-homelist',
   templateUrl: 'homelist.html',
 })
 export class HomelistPage {
    list:any
    popParams:object
    popPage:any
    callback:any
    constructor(private navCtl:NavController,private navParams:NavParams){
      this.callback = this.navParams.get("callback");
      this.list = [
        {
          id:1,
          img: {'background-image':'url(./assets/imgs/list_img01.png)'},
          title: 'Belsize Road, London NW6',
          bed:3,
          sofa:1,
          shower:2,
          area: '100SQ.FT(9.29SQ.M)',
          price:'£ 3,350/Month',
          type: 'rentper day'
        },
        {
          id:2,
          img: {'background-image':'url(./assets/imgs/list_img02.png)'},
          title: 'Belsize Road, London NW6',
          bed:3,
          sofa:1,
          shower:2,
          area: '100SQ.FT(9.29SQ.M)',
          price:'£ 3,350/Month',
          type: 'rentper day'
        },
      ]
      this.popPage = HomePage;
      this.popParams = {id:1};
    }
    gotoMap(){
      let param = '我是来自Push的值'
      this.callback(param).then(()=>{
       this.navCtl.pop();
      });
    }
 }